<template>
  <div class="c">
    <h1>C组件</h1>
    <p>A组件x：{{ x }}</p>
    <p>A组件y：{{ y }}</p>
    <button @click="handleBtn">按钮</button>
    <attrs-d v-bind="$attrs" v-on="$listeners" />
  </div>
</template>
<script>
import AttrsD from "./AttrsD.vue";
export default {
  components: { AttrsD },
  props: ["x", "y"],
  methods: {
    handleBtn() {
      this.$emit("refresh", "CCC");
    },
  },
};
</script>
